import { ref, computed } from 'vue'

export function useComs(emit) {
  const basecom = ref()
  const curtomcom = ref()
  const activeKey = ref('base')

  const tabsOptions = computed(() => {
    return {
      tabBarStyle: {
        height: '36px',
        padding: '0 8px',
        marginBottom: '8px',
      },
    }
  })

  const onCloseCode = () => emit('close')

  return {
    basecom,
    curtomcom,
    activeKey,
    tabsOptions,

    onCloseCode,
  }
}
